"""
__author__ = 'berlinyoung'
@File   :contact_addmember_edit_page.py
@Date   :2022/5/18 20:51
-*- coding: utf-8 -*-
"""
from appium.webdriver.common.mobileby import MobileBy
from weixin_mobile.step1_po.page.base import Base



class ManualAddMember(Base):
    def manual_addmember_success(self,name,phonenum):
        self.find_send(MobileBy.XPATH,"//*[@resource-id='com.tencent.wework:id/bem']",name)
        self.find_send(MobileBy.XPATH,"//*[@resource-id='com.tencent.wework:id/gc6']",phonenum)
        # self.find_send(MobileBy.XPATH,"//*[@resource-id='com.tencent.wework:id/bem']","Alice")
        # self.find_send(MobileBy.XPATH,"//*[@resource-id='com.tencent.wework:id/gc6']","168181718885")
        self.find_click(MobileBy.ID,"fzj")
        self.find_click(MobileBy.ID,"alo")

        from weixin_mobile.step1_po.page.contact_addmember_page import AddMemberPage
        return AddMemberPage(self.driver)
    def manual_addmember_fail(self):
        pass